package com.tanglongan.designPattern.dp16_mediator.demo01;

public class Client {
    public static void main(String[] args) {
        ChatRoom room = new ChatRoom();

        User tom = new User("tom", room);
        User jerry = new User("jerry", room);

        tom.sendMessage("Hi! I am Tom.");
        jerry.sendMessage("Hello! My name is Jerry.");
    }
}
